import sqlite3
conn = sqlite3.connect("d:/test.db")
cur = conn.cursor()

sqlstr = "select * from  user"
s = cur.execute(sqlstr)
for row in s:
    print("name=",row[0])
    print("profession=",row[1])
    print("age=",row[2])
    print("hometown=",row[3],'\n')